package com.lwz.repair.Thread;

public class DemoThread {
    public static void main(String[] args) {
        MyThread mt =new MyThread();
        mt.setName("ccc");
        mt.start();

        new MyThread("f5yfd5").start();

        new MyThread("sadh").start();
        for (int i = 0; i < 20; i++) {
            System.out.println(i);
            try {
                Thread.sleep(1000);
                System.out.println(Thread.currentThread().getName());
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }


    }

}
